package com.ruoyi.car.api;

import com.ruoyi.car.api.bo.WxLoginBo;
import com.ruoyi.car.api.bo.WxRegisterBo;
import com.ruoyi.car.api.bo.WxSmsBo;
import com.ruoyi.car.api.vo.WxLoginVo;
import com.ruoyi.car.service.IWxUserService;
import com.ruoyi.car.service.SmsService;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 短信相关接口
 */
@RestController
@RequestMapping("/wx/sms")
public class WxSmsApiController extends BaseController {
    @Autowired
    private SmsService smsService;

    /**
     * 发送短信
     */
    @PostMapping(value = "/send")
    public AjaxResult send(@RequestBody WxSmsBo wxSmsBo) {
        smsService.sendSms(wxSmsBo);
        return success();
    }


}
